package com.woniu113.junk.user.service;

import com.woniu113.junk.user.Param.addressInfo.DefaultAddressParam;
import com.woniu113.junk.user.Param.addressInfo.ModifyAddressParam;
import com.woniu113.junk.user.Param.addressInfo.UserAddressInfoParam;
import com.woniu113.junk.user.dto.address.FindAddressDTO;
import com.woniu113.junk.user.model.AddressInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 蜡笔没了小新
 * @since 2024年10月16日
 */
public interface AddressInfoService extends IService<AddressInfo> {

    void userAddressInfo(UserAddressInfoParam param);

    void defaultAddress(DefaultAddressParam param);

    void deleteAddress(DefaultAddressParam param);

    AddressInfo defaultAddressById(int userId);

//    List<AddressInfo> addressByUserId(int userId);

    void modifyAddress(ModifyAddressParam param);

    FindAddressDTO addressByUserId(int userId, int offset, int pageSize);
}
